FROM microimages/php-apache

WORKDIR /app

ADD src /app

RUN apk-install --update sed && \
  chown -R nobody:nobody /app

VOLUME /app

COPY wp-config-sample.php /app/
COPY docker-entrypoint.sh /entrypoint.sh

CMD ["/entrypoint.sh", "apache2-foreground"]
